package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.TreeEntity;

/**
 * 区域架构业务对象
 *
 * @author xhw
 * @date 2023-07-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysAreaBo extends TreeEntity<SysAreaBo> {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 区域名称
     */
    @NotBlank(message = "区域名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaName;

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaCode;

    /**
     * 层级
     */
    @NotBlank(message = "层级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaLeave;


}
